<?php
namespace CLUB\Controller;
use Think\Controller;
/**
* 俱乐部视频管理业务
*/
class VideoController extends Controller
{
	
	public function videolist(){
		
		$this->display();
	}
	public function addvideo(){
		$this->display();
	}
	public function uploadvdfile(){
		// move_uploaded_file($_FILES['filevideo']['tmp_name'],'./Public/upload/'.$_FILES['filevideo']['name']);
		// //print_r($_FILES);
		if(!file_exists('./Public/upload/'.$_FILES['filevideo']['name'].".MP4")){
          move_uploaded_file($_FILES['filevideo']['tmp_name'],'./Public/upload/'.$_FILES['filevideo']['name'].'.MP4');
		}else{
			file_put_contents('./Public/upload/'.$_FILES['filevideo']['name'].'.MP4',file_get_contents($_FILES['filevideo']['tmp_name']),FILE_APPEND);
		}
	}
}